//
//  DockTitleView.h
//  标签菜单
//
//  Created by Burn on 2019/7/23.
//  Copyright © 2019 menksoft. All rights reserved.
//

#import <UIKit/UIKit.h>
@class DockTitleStyle;
NS_ASSUME_NONNULL_BEGIN
@protocol DockTitleViewDelegate <NSObject>

- (void)dockTitleClickWith:(NSInteger)oldIndex currentIndex:(NSInteger)currentIndex;

@end

@interface DockTitleView : UIView

@property(weak,nonatomic) id<DockTitleViewDelegate> delegate;

- (instancetype)initWith:(NSArray *)titles frame:(CGRect)frame style:(DockTitleStyle *)style;

- (void)setTitleWithProgress:(CGFloat)progress oldIndex:(NSInteger)index newIndex:(NSInteger)newIndex;
@end

NS_ASSUME_NONNULL_END
